package marchsoft.modules.tiku.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import marchsoft.base.PageVO;
import marchsoft.modules.tiku.entity.ESafeType;
import marchsoft.base.IBasicService;
import marchsoft.modules.tiku.entity.dto.AddSafeTypeDto;
import marchsoft.modules.tiku.entity.dto.ESafeTypeDto;
import marchsoft.modules.tiku.entity.dto.SafeTypeQueryCriteria;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Set;

/**
 * <p>
 * 安全类别 服务类
 * </p>
 *
 * @author zsy
 * @since 2022-03-29
 */
public interface IESafeTypeService extends IBasicService<ESafeType> {
    /**
     * 按条件查询
     * */
    IPage<ESafeType> getAll(SafeTypeQueryCriteria criteria, PageVO pageVO);
    /**
     * 删除分类
     *
     * @param */
    int deleteByIds(Set<Long> ids);
    /**
     * 新增分类
     * */
    void addSafeType(AddSafeTypeDto eSafeType);
    /**
     * 修改分类
     * */
    void updateType(ESafeType eSafeType);
    /**
     * 修改状态
     * */
    void updateStatus(ESafeType eSafeType);
    /**
     * 获得所有名称
     * */
    List<ESafeTypeDto> getAllName(ESafeType eSafeType);

    List<ESafeType> getFront(ESafeType eSafeType);

    void download(List<ESafeType> eSafeTypeList, HttpServletResponse response);
}
